home *** CD-ROM | disk | FTP | other *** search
- property spriteNum
- global canRotate, nextRotate, previewSprite
-
- on new me, spriteRef
- if the paramCount > 1 then
- spriteNum = spriteRef.spriteNum
- end if
- return me
- end
-
- on mouseDown me
- set the member of sprite the spriteNum of me to "closePreview click"
- updateStage()
- end
-
- on mouseEnter me
- if the stillDown and (the clickOn = me.spriteNum) then
- set the member of sprite the spriteNum of me to "closePreview click"
- updateStage()
- end if
- end
-
- on mouseUp me
- if (the member of sprite me.spriteNum).name = "closePreview click" then
- set the member of sprite the spriteNum of me to "closePreview"
- updateStage()
- if the clickOn = me.spriteNum then
- if sprite(previewSprite).visible then
- aSprite = 0
- repeat while aSprite <= 5
- sprite(previewSprite - aSprite).visible = 0
- set the locH of sprite (previewSprite - aSprite) to the locH of sprite (previewSprite - aSprite) - 9999
- aSprite = 1 + aSprite
- end repeat
- else
- aSprite = 0
- repeat while aSprite <= 5
- sprite(previewSprite - aSprite).visible = 1
- set the locH of sprite (previewSprite - aSprite) to the locH of sprite (previewSprite - aSprite) + 9999
- aSprite = 1 + aSprite
- end repeat
- end if
- updateStage()
- end if
- end if
- end
-
- on mouseLeave me
- set the member of sprite the spriteNum of me to "closePreview"
- updateStage()
- end
-
- on mouseUpOutSide me
- set the member of sprite the spriteNum of me to "closePreview"
- updateStage()
- end
-